<template>
  <div>
    <ul class="list">
      <li v-for="item in listVue" :key="item" @click="handleClick(item)">{{item}}</li>
    </ul>

  </div>
</template>

<script>
  export default {
    name: "index",
    data() {
      return {
        listVue: [
          1, 2, 3, '123','嘿嘿'//404
        ]
      }
    },
    methods: {
      handleClick(item) {
        this.$router.push('/users/' + item)
      }
    }
  }
</script>

<style scoped>
  .list {
    margin: 0 auto;
  }
  .list li {
    border: 1px solid #47494e;
    width: 200px;
    line-height: 40px;
    height: 40px;
    text-align: center;
    cursor: pointer;
  }
</style>
